﻿<%@ Page Language="C#" MasterPageFile="~/U_masterP.master" AutoEventWireup="true"
    CodeFile="signin.aspx.cs" Inherits="signin" %>
<%@ Register Src="uc_main/sideBar_right.ascx" TagName="sideBar_right" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title>Sign in Vieclamgap.net</title>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="content_top">
       <div id="kep">
        <a href="#" shape="circle">ĐĂNG NHẬP</a></div>
    <div id="tags">
        <p class="title_p">
            <a href="joinPage.aspx">Đăng ký</a> khi chưa là thành viên</p>
    </div>
    </div>
    <div class="clear">
    </div>
    <div id="sub_content">
        <div id="content_left">
            
          <%-- <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
            <ContentTemplate>--%>
            <table style="width: 100%;margin-top:15px" id="tbl_dky">
                <tr>
                    <td class="tiude">
                        Tên đăng nhập <span style="color:Red;font-weight:normal;font-style:italic;font-size:12px">(*)</span> :
                       
                    </td>
                </tr>
                <tr>
                    <td class="textbox">
                        <asp:TextBox ID="TextBox1" CssClass="tus" runat="server" TabIndex="1"  onkeyup="valid(this,'special')" onblur="valid(this,'special')"></asp:TextBox>
                          <ajaxToolkit:FilteredTextBoxExtender ID="TextBox1_FilteredTextBoxExtender" 
                            runat="server" FilterMode="InvalidChars" InvalidChars="!@#;$%^&amp;*()_-+=\|{}[]&quot;':,&lt;&gt;.?/" 
                            TargetControlID="TextBox1">
                        </ajaxToolkit:FilteredTextBoxExtender>
                        
                          <br />
                    </td>
                </tr>
                <tr>
                    <td class="tiude">
                        Mật khẩu <span style="color:Red;font-weight:normal;font-style:italic;font-size:12px">(*)</span> :
                    </td>
                </tr>
                <tr>
                    <td class="textbox">
                        <asp:TextBox ID="TextBox3" runat="server" CssClass="tpas" TextMode="Password" TabIndex="2"></asp:TextBox>
                       
                    </td>
                </tr>
                <%--<tr>
                    <td style="font-size:11px;">
                        <asp:CheckBox ID="CheckBox1" CssClass="ghinho" runat="server" Text="Ghi nhớ cho những lần đăng nhập sau"/>
                    </td>
                </tr>--%>
                <tr>
                    <td>
                        <p class="chuthich">
                            (*) Những thông tin bắt buộc.</p>
                    </td>
                </tr>
                 <tr>
                    <td>
                        <p class="chuthich">
                            <asp:Label ID="lblL" runat="server" Text=""></asp:Label></p>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="img/dnhap.png" OnClientClick=" return check()"
                            onclick="ImageButton1_Click" TabIndex="3" />
                      
                    </td>
                </tr>
            </table>
          <%--</ContentTemplate>
            </asp:UpdatePanel>--%>
            <div class="clear">
            </div>
           <%-- <div class="gachtren">
            </div>
            <div class="gachduoi">
            </div>
            --%>
        </div>
        <div id="content_right">
         
            <uc1:sidebar_right id="sideBar_right1" runat="server" />
          
        </div>
    </div>

<style>
    .tus , .tpas 
    {
    	border: 1px solid #D5D5C5;
    }
</style>
<script type="text/javascript">
    $(function () {
        $(".tus").change(function () {
            $(".tpas").val("");
        });
        $(".tus").css("background", "#F5F5E5");
        $(".tpas").css("background", "#F5F5E5");
        //----
        $(".tus").focus(function () {
            //            $(".tus").css("border", "1px solid #ff7200");
            $(".tus").css("background", "#f5f496");
        });
        $(".tus").blur(function () {
            $(".tus").css("border", "1px solid #D5D5C5");
            $(".tus").css("background", "#F5F5E5");
            if ($(".tus").val() != null && $(".tus").val() != "") {
                $(".tus").css("background", "#f5f496");
            }
        });

        //-------------
        $(".tpas").focus(function () {
            //          $(".tpas").css("border", "1px solid #ff7200");
            $(".tpas").css("background", "#f5f496");
        });
        $(".tpas").blur(function () {
            $(".tpas").css("border", "1px solid #D5D5C5");
            $(".tpas").css("background", "#F5F5E5");
            if ($(".tpas").val() != null && $(".tpas").val() != "") {
                $(".tpas").css("background", "#f5f496");
            }
        });
        //-------------
    });
    var r = {
        'special': /[\W]/g,
        'quotes': /['\''&'\"']/g,
        'notnumbers': /[^\d]/g
    }

    function valid(o, w) {
        o.value = o.value.replace(r[w], '');
    }
    function check() {
        if ($(".tus").val() == "") {
            alert("Bạn hãy nhập tên đăng nhập!");
            $(".tus").focus();
            return false;
        } else if ($(".tpas").val() == "") {
            alert("Bạn hãy nhập mật khẩu !");
            $(".tpas").focus();
            return false;
        }
    }
</script>
</asp:Content>
